//
//  ArticleViewModelVC.m
//  YZZX
//
//  Created by Easaa on 15/4/20.
//  Copyright (c) 2015年 Easaa. All rights reserved.
//

#import "ArticleViewModelVC.h"

@interface ArticleViewModelVC ()

@end

@implementation ArticleViewModelVC
-(id)initWithCateGoryData:(CategoryDataModel *)categoryModel
{
    self= [super init];
    if(self)
    {
        self.ModelData = categoryModel;
        
        
    }

    return self;

}



- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor blackColor];
   
    self.bgview =[[UIView alloc]initWithFrame:CGRectMake(0, 0, Dev_ScreenWidth, Dev_ScreenHeight-64)];
    [self.view addSubview:self.bgview];
    
//    CategoryDataModel *mdoel = [[CategoryDataModel alloc]init];
//    mdoel.cate_id = @"4";

   
    
    self.tablview = [[ListTableviewModel alloc]initWithFram:CGRectMake(0, 64,Dev_ScreenWidth , Dev_ScreenHeight-64-48) CategoryModel:self.ModelData];
    
      self.tablview.ListTableviewdelegate =self.rootviews;
  
    
    [self.bgview addSubview:self.tablview];
    
}

//#pragma mark 搜索调用
//-(void)searchTableview
//{
//    [self.bgview removeFromSuperview];
//
//    self.tablview = [[ListTableviewModel alloc]initWithFram:CGRectMake(0, 64,Dev_ScreenWidth , Dev_ScreenHeight-64-48) CategoryModel:self.ModelData];
//    
//    self.tablview.ListTableviewdelegate =self.rootviews;
//    [self.bgview addSubview:self.tablview];
//
//}





@end
